#pragma once

#include "playLed.h"

class playLed
{
public:
	playLed(HWND hwnd);
	~playLed(void);

	bool begin(CString name);

	int play();

	void end();

	bool stoped(){return m_stoped;};

	void exit() { m_exited = true;};
	void destroy();
protected:
	void drawLine(CImage *image, double angle, unsigned size, unsigned char *pcolor);
private:
	bool m_stoped;
	bool m_exited;
	CFile m_file;
	class CplayDlg *m_dlg;
	CImage m_image;
	HWND m_hwnd;

	unsigned m_portion;
	unsigned m_radius;
	unsigned m_leaf;
};


int playLedImage(CString file, HWND hwnd);
